package edu.xpu.compute.recommend.entity.meta;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 系统用户的专业
 * @author liukang
 * @date 2019年11月4日
 */
@Getter
@Setter
@NoArgsConstructor
@Entity(name="SysUserMajor")
@Table(name="SYS_USER_MAJOR")
public class SysUserMajor {
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id;
	/*
	 * 专业名称
	 */
	private String name;
	/*
	 * 专业编码
	 */
	private String code;
	/*
	 * 创建时间
	 */
	private Date createDate;
	@ManyToOne(optional=true, fetch=FetchType.LAZY)
	@JoinColumn(name="FACULTY_GUID")
	private SysUserFaculty faculty;

}
